exports.install = function(Vue, options) {
    Vue.prototype.getDate = function() {
        var date = new Date();
        var year = date.getFullYear();
        var month = date.getMonth() + 1;
        if(month < 10) {
            month = "0" + month;
        }
        var day = date.getDate();
        if(day < 10) {
            day = "0" + day;
        }
        return year + "-" + month + "-" + day;
    }

    Vue.prototype.getDatetime = function() {
        var date = new Date();
        var year = date.getFullYear();
        var month = date.getMonth() + 1;
        var hour = date.getHours();
        var minute = date.getMinutes();
        var second = date.getSeconds();
        if(month < 10) {
            month = "0" + month;
        }
        var day = date.getDate();
        if(day < 10) {
            day = "0" + day;
        }
        if(hour<10) {
            hour = "0" + hour;
        }
        if(minute<10) {
            minute = "0" + minute;
        }
        if(second<10) {
            second = "0" + second;
        }
        return year + "-" + month + "-" + day + " " + hour + ":" + minute +　":" + second;
    }
}